Added functionality to like model.
Using postgresql