Add data to database