adding some sql updates and simple sign in