Save entry in database