Fix count query

 - Fixed getting the actual count from PG::Result object.
 - Updated test for delete_all
Execute where clause
Log query
Allow creating a record using Post.create