API Auth and DB setup