Added list selector with groups
Refactored PhotoModel to DatabaseModel