added signup/logout - finalised database