Added creation of positions to database