Optimized layout algorithm, updated compiler options

- repulse kernel optimization
- removed nvcc compiler debug flag
- commented out db connection