added $database parameter to models
query in preprd statement