Fixed bug with adding parameters, made custom functions for get auto_increment