Issues commiting to database