Redid a lot of it and got most of the database done. Message listener needs fixing.