Lets try some ugly parsing method
That was bad...
Formatting code
Ends filtering added
Removed unused var
Fixed time.time() cause it looks bad in db
SQL formatting