Do not save static fields in models
Keep an open database instance globally
Code cleanup