bugs in line adding to database, mysql functionallity needs to be added