now loads from database as it should