fix: database get functions now works for postgre and auth locked work with right timezone in postgre.