phase 5: making a database connection and connecting/checking that page with information from db