start of admin and connecting to db