Changed made to extra functions

Slight problems understanding the new SQLite code
But with a basic idea at least, functions have been made to alter
previously made functions with this new type of usage