modularized php files integrated database query for sign in