now adds positions to database (not writing good values)