Database connection + several functions

Established database connection
Export Database query
Function implemented:
   -Register function
   -Login function
   -Remember me function