SE framework working, bugs in connecting to DB