Database connection
The link below opens the file which, step by step, explains how to implement the direct connection with an external database.
Tutorial