Decouple server from db to allow autonomous usage