Life is now sorted in aquarium details

Life is now sorted on aquarium details page.
Also fixed stupid bugs with SQL creation script.