Implimented DB connections with mongoose