Post data to database