micropost database functionality