add admin, user page, move database link out of repo into separate js file