using sqlite for auth