added getPostsByUserId() function to database;
added first Jasmine for testing database;