basic auth connected to database

Signed-off-by: Alexander Skjolden <alex@plastboks.net>