Fix database. PLEASE TEST YOUR QUERIES! -_-