prepared a db functions for user likes and user download
store default time duration value to 1