Submit to database working