Fixed bug with table not being selected when inserting new bug in the database