Added sql sentence for database