Add common functions
Add prepared mysql statements for checking user/pass